<?php
/* @var $this DefaultController */
/* @var $model Taikhoan */
/* @var $form CActiveForm */
?><link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" rel="stylesheet" type="text/css" />

<div class="row">
	<div class="col-md-12">
		<div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Tạo tài khoản hệ thống</h3>
            </div><!-- /.box-header -->
			<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'taikhoan-form',
				'clientOptions'=>array(
		                'inputContainer'=>'div.form-group',
		        ),
				'enableAjaxValidation'=>false,
			)); ?>
				<div class="box-body">
					<div class="form-group">
						<?php echo $form->labelEx($model,'tendangnhap'); ?>
						<?php echo $form->textField($model,'tendangnhap',array('size'=>30,'maxlength'=>30,'class'=>'form-control','placeholder'=>'Tên đăng nhập')); ?>
						<?php echo $form->error($model,'tendangnhap'); ?>
					</div>

					<div class="form-group">
						<?php echo $form->labelEx($model,'tenhienthi'); ?>
						<?php echo $form->textField($model,'tenhienthi',array('size'=>20,'maxlength'=>20,'class'=>'form-control','placeholder'=>'Tên hiển thị')); ?>
						<?php echo $form->error($model,'tenhienthi'); ?>
					</div>

					<div class="form-group">
						<?php echo $form->labelEx($model,'matkhau'); ?>
						<?php echo $form->passwordField($model,'matkhau',array('size'=>60,'maxlength'=>250,'class'=>'form-control','placeholder'=>'Mật khẩu')); ?>
						<?php echo $form->error($model,'matkhau'); ?>
					</div>
					<div class="form-group">
						<?php echo $form->labelEx($model,'nhac_lai_mat_khau'); ?>
						<?php echo $form->passwordField($model,'nhac_lai_mat_khau',array('size'=>60,'maxlength'=>250,'class'=>'form-control','placeholder'=>'Nhắc lại mật khẩu')); ?>
						<?php echo $form->error($model,'nhac_lai_mat_khau'); ?>
					</div>

					<div class="form-group">
						<?php echo $form->labelEx($model,'email'); ?>
						<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100,'class'=>'form-control','placeholder'=>'Địa chỉ email')); ?>
						<?php echo $form->error($model,'email'); ?>
					</div>

					<div class="form-group buttons">
						<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
					</div>
				</div>
			<?php $this->endWidget(); ?>
		</div>
	</div>
</div><!-- form -->